import request from '@/util/request'

// 登录
export const loginAPI = (data) => {
  return request({
    url: '/api/login',
    method: 'post',
    data,
  })
}

// 注册
export const registerAPI = (data) => {
  return request({
    url: '/api/reguser',
    method: 'post',
    data,
  })
}
